home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CVScrollBar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-23  |  1.2 KB  |  48 lines  |  [TEXT/KAHL]

  1. /* CVScrollBar.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CViewRect.h"
  6.  
  7. class CWindow;
  8.  
  9. /* internal part IDs */
  10. #ifndef mNone
  11. #define mNone (0)
  12. #endif
  13. enum    {mUpOne = mNone + 1, mUpPage, mVBox, mDownOne, mDownPage};
  14.  
  15. struct    CVScrollBar    :    CViewRect
  16.     {
  17.         CViewRect*    Owner;
  18.         long                NumCells;
  19.         long                CellIndex;
  20.         short                CurrentOperation;
  21.         LongPoint        OneUpZoneTL;
  22.         LongPoint        OneUpZoneExt;
  23.         LongPoint        PageUpZoneTL;
  24.         LongPoint        PageUpZoneExt;
  25.         LongPoint        VScrollZoneTL;
  26.         LongPoint        VScrollZoneExt;
  27.         LongPoint        PageDownZoneTL;
  28.         LongPoint        PageDownZoneExt;
  29.         LongPoint        OneDownZoneTL;
  30.         LongPoint        OneDownZoneExt;
  31.         MyBoolean        VScrollable;
  32.  
  33.         void            IVScrollBar(LongPoint Start, LongPoint Extent, CViewRect* TheOwner,
  34.                                 CWindow* TheWindow, CEnclosure* TheEnclosure);
  35.         short            FindPart(LongPoint Where);
  36.         void            DoMouseDown(MyEventRec Event);
  37.         void            RedrawVBar(void);
  38.         void            DoUpdate(void);
  39.         void            DoEnable(void);
  40.         void            DoDisable(void);
  41.         void            DoResume(void);
  42.         void            DoSuspend(void);
  43.         void            RecalcScrollRects(void);
  44.         void            RecalcLocations(LongPoint EnclosureVisRectStart,
  45.                                 LongPoint EnclosureVisRectExtent, LongPoint EnclosureOrigin);
  46.         void            SetPosition(long NewCellIndex, long NewNumCells);
  47.     };
  48.